---
page_title: "cloudflare_origin_ca_root_certificate Data Source - Cloudflare"
subcategory: ""
description: |-
  Use this data source to get the
  Origin CA root certificate https://developers.cloudflare.com/ssl/origin-configuration/origin-ca#4-required-for-some-add-cloudflare-origin-ca-root-certificates
  for a given algorithm."
---

# cloudflare_origin_ca_root_certificate (Data Source)

Use this data source to get the
[Origin CA root certificate](https://developers.cloudflare.com/ssl/origin-configuration/origin-ca#4-required-for-some-add-cloudflare-origin-ca-root-certificates)
for a given algorithm."

## Example Usage

```terraform
data "cloudflare_origin_ca_root_certificate" "example" {
  algorithm = "rsa"
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `algorithm` (String) The name of the algorithm used when creating an Origin CA certificate. Available values: `rsa`, `ecc`.

### Read-Only

- `cert_pem` (String) The Origin CA root certificate in PEM format.
- `id` (String) The ID of this resource.


